package router

import (
	"OJCenter/router/api"
	"github.com/gin-gonic/gin"
)

func InitProblemRouter(api *api.Api, Router *gin.RouterGroup) {
	AuthorityRouter := Router.Group("Problem")
	{
		AuthorityRouter.POST("createProblem", api.CreateProblem)   // 创建题目
		AuthorityRouter.POST("deleteProblem", api.DeleteProblem)   // 删除题目
		AuthorityRouter.POST("updateProblem", api.UpdateProblem)   // 更新题目
		AuthorityRouter.POST("getProblemList", api.GetProblemList) // 获取题目列表
	}
}
